<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Accountlog extends Model
{
    //书包里的出售的图书的留言
    
    protected $table = 'yds_account_log';

    protected $primaryKey = 'id';

    //关闭更新  'updated_at`, `created_at' 字段
    public $timestamps = false;

    //一对一关系
    public function hasOnUsersReg()
    {
    	return $this->hasOne('App\Models\UsersReg','uid','uid');
    }

    //一对一关系,对应提现信息
    public function hasOnetixian()
    {
        return $this->hasOne('App\Models\TixianZhanghu','uid','uid');
    }

}
